// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.BackupDao;
import com.liuxinlong.modules.entity.Backup;
import com.liuxinlong.modules.mapper.BackupMapper;
import com.liuxinlong.modules.system.dto.BackupDto;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年5月6日
 */
@Service
public class BackupDaoImpl extends ServiceImpl<BackupMapper, Backup> implements BackupDao {
	@Override
	public List<BackupDto> pageBackupList(Map<String, Object> queryParam) {
		return baseMapper.pageBackupList(queryParam);
	}

	@Override
	public int getBackupCount(Map<String, Object> queryParam) {
		return baseMapper.getBackupCount(queryParam);
	}

	@Override
	public Map<String, Map<String, String>> getBackupMap() {
		return baseMapper.getBackupMap();
	}

	@Override
	public List<BackupDto> getBackupList(String businessId) {
		return baseMapper.getBackupList(businessId);
	}

	@Override
	public void updateStatus(String id, int targetStatus, String endTime) {
		baseMapper.updateStatus(id,targetStatus,endTime);
	}

}
